package com.huidatech.mpgdemo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BasePO {
    // 主键为自动ID
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "删除标记，0:正常; 1:删除")
    @TableField("del_flag")
    private Byte delFlag;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_by_name")
    private String createByName;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    @TableField("update_by_name")
    private String updateByName;

    public static final String ID = "id";

    public static final String DEL_FLAG = "del_flag";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_BY_NAME = "create_by_name";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_BY_NAME = "update_by_name";
}